package com.xx.doublexchat.common.chat.service;

import com.xx.doublexchat.common.chat.domain.entity.Message;
import com.xx.doublexchat.common.chat.domain.vo.request.ChatMessageRequest;
import com.xx.doublexchat.common.chat.domain.vo.response.ChatMessageResponse;

public interface ChatService {
    /**
     * 发送消息
     * @param request
     * @param uid
     * @return
     */
    Long sendMsg(ChatMessageRequest request, Long uid);

    /**
     * 获取消息详细信息组合
     * @param message 消息
     * @param receiveUid 接受消息的uid，可null
     * @return
     */
    ChatMessageResponse getMsgResp(Message message, Long receiveUid);

    /**
     * 获取消息详细信息组合
     * @param message 消息
     * @param receiveUid 接受消息的uid，可null
     * @return
     */
    ChatMessageResponse getMsgResp(Long msgId, Long receiveUid);
}
